package com.yyh1;

public class Stydent1 {
    //属性
    //学员编号
    private String id;
    //姓名
    private String name;
    //性别
    private String sex;
    //身高
    private double height;
    //年龄
    private int age;

    public Stydent1() {
    }

    public Stydent1(String id, String name, String sex, double height, int age) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.height = height;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    //行为
    //打印
    public void show(){
        System.out.println("学员编号："+id+",学员姓名："+name+",学员性别："+sex+",学员身高："+height+",学员年龄"+age);
    }
}
